//
//  BookmarkSectionHeaderView.h
//  CLBrowser
//
//  Created by 梁慧聪 on 2017/4/26.
//  Copyright © 2021年 梁慧聪. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol CLSectionHeaderViewDelegate;

@interface CLBookmarkSectionHeaderView : UITableViewHeaderFooterView

@property (weak, nonatomic) IBOutlet UILabel *titleLabel;
@property (weak, nonatomic) IBOutlet UIButton *diclosureButton;
@property (weak, nonatomic) id<CLSectionHeaderViewDelegate> delegate;
@property (assign, nonatomic) NSInteger section;

- (void)toggleOpenWithUserAction:(BOOL)userAction;

@end

#pragma mark -

@protocol CLSectionHeaderViewDelegate <NSObject>

@optional
- (void)sectionHeaderView:(CLBookmarkSectionHeaderView *)sectionHeaderView sectionOpened:(NSInteger)section isMove:(BOOL)isMove;
- (void)sectionHeaderView:(CLBookmarkSectionHeaderView *)sectionHeaderView sectionClosed:(NSInteger)section;

@end
